home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / DEBUG-INFORMATION_PROFILE.STX < prev    next >
Encoding:
Text File  |  2000-06-30  |  2.0 KB  |  47 lines

  1. Debug Management - Profile: Performance testing.
  2.  
  3.   Description
  4.  
  5.     Zope can provide real-time profiling information.  Profiling helps
  6.     product authors to speed up sections of code that are taking too
  7.     long to perform their tasks. 
  8.  
  9.     In order to use profiling Zope has to be started with the
  10.     'PROFILE_PUBLISHER' environment variable set to a non-empty
  11.     value. If the variable is set to a valid filesystem path, then the
  12.     accumulated profile information will be dumped to the named file
  13.     when Zope is shut down. If the variable is simply set to a
  14.     non-empty value that is not a valid filesystem path then Zope will
  15.     still run in profiling mode, but profile information will only be
  16.     available through the web interface.
  17.  
  18.     **Note: Profiling will slow Zope performance significantly.** 
  19.  
  20.     Once Zope has started in profiling mode visit your site with your Web
  21.     browser - Zope will accumulate profiling information as you are
  22.     working with your site.  When you want to view the profiling
  23.     information, visit the Control Panel, click on the 'Debugging
  24.     information' link and select the 'Profiling' tab.
  25.  
  26.     The profiling screen will show a list of methods and the amount of
  27.     time each method is taking. Multiple views are available by
  28.     changing the sort order and pushing the "update" button. The
  29.     online profiler is based on the standard Python profile module.
  30.     For specific information on the meaning of the profile
  31.     information, see the standard Python documentation for the
  32.     'profile' module.
  33.  
  34.     When you are done profiling turn profiling off by restarting Zope
  35.     without the 'PROFILE_PUBLISHER' environment variable set.
  36.  
  37.   Controls
  38.  
  39.     'Sort' -- How to sort function calls.
  40.  
  41.     'Limit' -- How many function calls to display.
  42.  
  43.     'Update' -- Updates the profiling information.
  44.  
  45.   See Also
  46.  
  47.     "Python profiler documentation":http://www.python.org/doc/current/lib/module-profile.html